{extend name="common:code" /}
{block name="script"}
<script>
$(function(){
	window.setInterval(function(){
		$.post(
			"{:url('Recharge/get_order_status')}",
			{
				out_trade_no:"{$trade_no}"
			},
			function(d){
				if(d=='pay_suc'){												
					parent.window.art.dialog({content:'充值成功', lock: true});	
					
					setTimeout(function (){
						parent.window.location ="{:url('Member/Predeposit/index')}";
					}, 1000);
					
				}
			}
		);
	}, 2000); 
});	
</script>
{/block}